import axios from '../utils/axios.js';

export let login=(user)=>{
    return axios.post('/user/login',user)
}

export let regist=(user)=>{
    return axios.post('/user/regist',user)
}

export let modify=(userInfo)=>{
    console.log(userInfo)
    return axios.post('/user/modify',userInfo)
}

export let getUserInfo=(id)=>{
    return axios.get(`/user/userInfo/${id}`)
}
 